import request from "@/utils/request";

// 查询角色管理列表
export function listContributejudge(query) {
  return request({
    url: "/content/contributeJudge/op/page",
    method: "post",
    data: query,
  });
}

// 查询角色管理详细
export function getContributejudge(id) {
  return request({
    url: "/content/contributeJudge/op" + "/" + id,
    method: "get",
  });
}

// 新增角色管理
export function addContributejudge(data) {
  return request({
    url: "/content/contributeJudge/op/save",
    method: "post",
    data: data,
  });
}

// 修改角色管理
export function updateContributejudge(data) {
  return request({
    url: "/content/contributeJudge/op/update",
    method: "put",
    data: data,
  });
}

// 删除角色管理
export function deleteContributejudge(id) {
  return request({
    url: "/content/contributeJudge/op" + "/" + id,
    method: "delete",
  });
}

/**
 * 提交审核结果
 * @param {*} query
 * @returns
 */
export const submitContributeJudgeForm = (query) => {
  return request({
    method: "POST",
    url: "/content/contributeJudge/submit",
    data: query,
  });
};
